<?php
namespace Account\Model;

use Common\Model\BaseModel;

class BankCardModel extends BaseModel
{
    protected $_auto = [
        ['create_time', 'time', self::MODEL_INSERT, 'function'],
    ];

    protected $_validate = [
        ['user_id', 'require', '用户不能为空', self::MUST_VALIDATE],
        ['bank', 'require', '银行不能为空', self::MUST_VALIDATE],
        ['account', 'require', '银行卡号不能为空', self::MUST_VALIDATE],
        ['cardholder', 'require', '持卡人不能为空', self::MUST_VALIDATE],
        ['sub_branch', 'require', '支行不能为空', self::MUST_VALIDATE],
        ['mobile', 'require', '预留手机不能为空', self::MUST_VALIDATE],
    ];
    
}
